﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;

namespace Bussiness
{
    public static class ControladoraUI
    {
        public static void GetMenuItems(string type)
        {
            
        }

        public static MenuItemCollection GetMenuAdminItems(bool isLogged)
        {         
            MenuItemCollection lisItem = new MenuItemCollection();

            if (isLogged)
            {
                lisItem.Add(new MenuItem("NOVEDADES", "", "", "~/Admin/ABM_Novedad.aspx"));
                lisItem.Add(new MenuItem("OBRAS", "", "", "~/Admin/ABM_Proyecto.aspx"));
            }

            return lisItem;
        }

        public static MenuItemCollection GetMenuClientItems()
        {
            MenuItemCollection lisItem = new MenuItemCollection();

            lisItem.Add(new MenuItem("EMPRESA", "", "", "~/Empresa.aspx"));
            lisItem.Add(new MenuItem("TRAYECTORIA", "", "", "~/Trayectoria.aspx"));
            lisItem.Add(new MenuItem("NOVEDADES", "", "", "~/Novedad.aspx"));
            lisItem.Add(new MenuItem("OBRAS", "", "", "~/Proyecto.aspx"));
            lisItem.Add(new MenuItem("CONTACTO", "", "", "~/Contacto.aspx"));

            return lisItem;
        }
    }
}
